package base

/**
  * Created by root on 15-12-21.
  */
object PrivateClass {

  //这个方法会报错Error:(8, 7) private class PrivateClass escapes its defining scope
  def getInstance()={
    new PrivateClass
  }
}
class PrivateClass private(){
  def show() : Unit ={
    println("success")
  }
}
